<template>
  <div class="tutor">
    <Skeleton :loading="props.loading">
      <template #ske>
        <div
          style="
            width: 100%;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            flex-direction: column;
          "
        >
          <van-skeleton-paragraph
            style="width: 45%; height: 20px; margin-bottom: 10px"
          />
          <van-skeleton-paragraph
            style="width: 100%; height: 15px; margin: 10px 0 0px 0"
          />
          <van-skeleton-paragraph
            style="width: 30%; height: 15px; margin: 10px 0 0px 0"
          />
          <van-skeleton-image
            style="
              width: 100%;
              height: 160px;
              border-radius: 5px;
              margin-top: 20px;
            "
          />
          <van-skeleton-paragraph
            style="width: 100%; height: 30px; margin: 25px 0 0px 0"
          />
          <div style="width: 100%;margin-top: 20px;">
            <van-skeleton-paragraph
              style="width: 100%; height: 90px;"
            />
            <van-skeleton-paragraph
            style="width: 100%; height: 40px; margin: 10px 0 0px 0"
          />
          </div>
        </div>
      </template>
      <template #main>
        <h3>{{ $t("language.Share.tutor.name") }}</h3>
        <p class="system">{{ $t("language.Share.tutor.text1") }}</p>
        <img src="@/assets/img/tutor.png" alt="" />
        <p>{{ $t("language.Share.tutor.text2") }}</p>
        <dl>
          <dd>
            <strong>{{ $t("language.Share.tutor.head1") }}</strong
            ><span>Tier 1 Players</span>
          </dd>
          <dd>
            <strong>{{ $t("language.Share.tutor.head2") }}</strong
            ><span>A1+B1</span>
          </dd>
          <dd>
            <strong>{{ $t("language.Share.tutor.head3") }}</strong
            ><span>100000</span>
          </dd>
          <dd>
            <strong>{{ $t("language.Share.tutor.head4") }}</strong
            ><span>5%o</span>
          </dd>
          <dd>
            <strong>{{ $t("language.Share.tutor.head5") }}</strong
            ><span>500</span>
          </dd>
        </dl>
      </template>
    </Skeleton>
  </div>
</template>

<script setup lang="ts">
import {  defineProps } from "vue";
let props = defineProps({
  loading: {
    type: Boolean,
    default: false,
  },
});
</script>

<style scoped lang="scss">
.tutor {
  width: 100%;
  padding: 0 10px;
  h3 {
    color: #0a906c;
    font-size: 20px;
    text-align: center;
    margin: 20px 0 13px;
  }
  .system {
    width: 96%;
    text-align: center;
    font-size: 14px;
    line-height: 34px;
    color: #b5bac8;
    padding: 0;
  }
  img {
    width: 100%;
    margin-top: 14px;
  }
  p {
    font-size: 16px;
    color: #b5bac8;
    padding: 20px;
  }
  dl {
    border: 1px solid #4b4e55;
    border-right: none;
    @include flex(row, flex-start, center);
    flex-wrap: nowrap;
    overflow-x: auto;
    &::-webkit-scrollbar {
      width: 0;
      height: 0;
      display: none;
    }
    dd {
      @include flex(column, flex-start, center);
      border-right: 1px solid #4b4e55;
      strong {
        text-align: center;
        display: block;
        padding: 8px;
        width: 117px;

        font-size: 14px;
        color: #b5bac8;

        background-color: rgb(61, 65, 72);
      }
      span {
        padding: 8px;
        display: block;
        width: 117px;

        font-size: 14px;
        color: #b5bac8;
        text-align: center;
      }
    }
  }
}
</style>
